package com.wjjm.spoonselling.pojo;

public class Commodity {

    private int commodityId;
    private int merchantId;
    private String name;
    private Double price;
    private int inventory;
    private int volume;
    private String image;   //存储图片路径

    public int getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    public int getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(int merchantId) {
        this.merchantId = merchantId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public int getVolume() {
        return volume;
    }

    public void setVolume(int volume) {
        this.volume = volume;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "commodityId=" + commodityId +
                ", merchantId=" + merchantId +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", inventory=" + inventory +
                ", volume=" + volume +
                ", image=" + image +
                '}';
    }
}
